{extend name="public/base" /}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
	</header>
	<div class="main-box-body clearfix">
		
		<div class="table-responsive clearfix">

			<div class="table-responsive clearfix">
				<table class="table table-hover">
					<thead>
						<tr>
							<th width="30%">页面</th>
							<th width="30%">页面地址</th>
							<th width="40%">操作</th>
						</tr>
					</thead>
					<tbody>
						{if condition="empty($list)"}
						<tr>
							<td colspan="3" align="center">暂无数据！</td>
						</tr>
						{else/}
						{volist name="list" id="item"}
						<tr>
							<td>{$item.name}</td>
							<td >{$domain}{$item.url}</td>
							<td ><i class="fa fa-copy" title="点击复制" style="cursor:pointer" data-toggle="copy-link" data-clipboard-text="{$domain}{$item.url}">复制链接</i>
							<a href="/admin/customservice/addtext/model_id/55.html?page_title={$item.name}&page_link={:urlencode($domain.$item.url)}">创建客服消息</a> <a href="/admin/template/add/model_id/26.html?page_title={$item.name}&page_link={:urlencode($domain.$item.url)}">创建模板消息</a></td>
						</tr>
						{/volist}
						{/if}
					</tbody>
				</table>
			</div>
		</div>
	</div>
	
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="/public/js/clipboard.min.js"></script>
<script type="text/javascript">
$(function () {
	$('[data-toggle="copy-link"]').each(function () {
	   new Clipboard(this).on('success', function (e) {
		   e.clearSelection();
		   updateAlert('复制成功', 'success');
	   });
	});	
	
})
</script>
{/block}